package main

import fmt "fmt"

func main() {
	var (
		name string
		age  int
	)
	fmt.Print("请输入姓名和年龄，使用空格分隔：")
	//n, err := fmt.Scanln(&name, &age)
	n, err := fmt.Scanf("%s %d", &name, &age)
	fmt.Println(age)
	fmt.Printf("name:%s\n age:%d \n", name, age)

	fmt.Println("records count:", n)
	fmt.Println("err or not:", err)
}
